package com.woniuxy.lab.woniu_lab_boss.controller.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author 17292
 */
@Data
@ApiModel("登录方法")
public class LoginForm {

    /**
     * 用户名
     */
    @ApiModelProperty("登录账号")
    @NotNull(message = "用户名不能为空")
    private String username;

    /**
     * 登录密码
     */
    @ApiModelProperty("密码")
    @NotNull( message = "密码不能为空")
    @Pattern(regexp = "^[A-Za-z0-9!@#$%^&*()_+=\\[\\]{}|;',./:\"<>?]{3,16}$", message = "密码格式不正确")
    private String password;


}
